package jdbc_test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class JdbcMain {
	public static void main(String[] args)		{
		ApplicationContext context = new ClassPathXmlApplicationContext("jdbc_test/jdbc_config.xml");
		ICustomerDAO customerDAO = (ICustomerDAO) context.getBean("customerDAO", JdbcCustomerDAO.class);
		CustomerModel customer = new CustomerModel();
//		customer = new CustomerModel(1, "judking", 22);
//		customerDAO.insert(customer);
		
//		customer = customerDAO.findByCustomerId(1);
//		System.out.println(customer);
	}
}
